﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SharePointBrowser
{
    public partial class SettingsForm : Form
    {
        public SettingsForm()
        {
            InitializeComponent();
        }

        private void miCancel_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void SettingsForm_Closed(object sender, EventArgs e)
        {
            if (DialogResult == DialogResult.OK)
            {
                Configuration.Instance.ShowHiddenLists = chkShowHiddenLists.Checked;
                Configuration.Instance.Save();
            }
        }

        private void SettingsForm_Load(object sender, EventArgs e)
        {
            chkShowHiddenLists.Checked = Configuration.Instance.ShowHiddenLists;
        }
    }
}